package com.base.service.impl;

import com.base.mapper.voipmapper.AboutsMapper;
import com.base.mapper.voipmapper.ReplacementPlanMapper;
import com.base.po.replacement.ReplacementPlan;
import com.base.po.replacement.ReplacementPlanExample;
import com.base.po.voip.Abouts;
import com.base.po.voip.AboutsExample;
import com.base.service.AboutsService;
import com.base.service.ReplacementPlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("replacementPlanService")
public class ReplacementPlanServiceImpl implements ReplacementPlanService {
	
	@Autowired
	private ReplacementPlanMapper replacementPlanMapper;


	@Override
	public int countByExample(ReplacementPlanExample example) {
		return replacementPlanMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(ReplacementPlanExample example) {
		return replacementPlanMapper.deleteByExample(example);
	}

	@Override
	public int insert(ReplacementPlan record) {
		return replacementPlanMapper.insert(record);
	}

	@Override
	public int insertSelective(ReplacementPlan record) {
		return replacementPlanMapper.insertSelective(record);
	}

	@Override
	public List<ReplacementPlan> selectByExample(ReplacementPlanExample example) {
		return replacementPlanMapper.selectByExample(example);
	}

	@Override
	public List<ReplacementPlan> selectAllPlan() {
		return replacementPlanMapper.selectAllPlan();
	}

	@Override
	public List<ReplacementPlan> selectByCardNo(String userid, String cardno) {
		return replacementPlanMapper.selectByCardNo(userid, cardno);
	}

	@Override
	public List<ReplacementPlan> selectByUserID(String userid) {
		return replacementPlanMapper.selectByUserID(userid);
	}

	@Override
	public int updateByExampleSelective(ReplacementPlan record, ReplacementPlanExample example) {
		return replacementPlanMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(ReplacementPlan record, ReplacementPlanExample example) {
		return replacementPlanMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(ReplacementPlan record) {
		return replacementPlanMapper.updateByPrimaryKeySelective(record);
	}
}
